<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 4.2.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/logo.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/logo.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/logo.png">
  <link rel="mask-icon" href="/images/logo.png" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"gitee.com","root":"/","scheme":"Pisces","version":"7.7.2","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"./public/search.xml"};
  </script>

  <meta name="description" content="将持续更新~">
<meta property="og:type" content="article">
<meta property="og:title" content="微信小程序学习笔记">
<meta property="og:url" content="https://gitee.com/mamba666/mamba666.git/2020/03/09/%E5%BE%AE%E4%BF%A1%E5%B0%8F%E7%A8%8B%E5%BA%8F%E7%AC%94%E8%AE%B0/index.html">
<meta property="og:site_name" content="共你云雨">
<meta property="og:description" content="将持续更新~">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2020-03-09T08:46:41.916Z">
<meta property="article:modified_time" content="2020-03-09T08:46:44.094Z">
<meta property="article:author" content="Edison">
<meta property="article:tag" content="微信小程序">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="https://gitee.com/mamba666/mamba666.git/2020/03/09/%E5%BE%AE%E4%BF%A1%E5%B0%8F%E7%A8%8B%E5%BA%8F%E7%AC%94%E8%AE%B0/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true
  };
</script>

  <title>微信小程序学习笔记 | 共你云雨</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>
	<a href="https://github.com/mamba666" target="_blank" rel="noopener" class="github-corner" aria-label="View source on GitHub"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <div>
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">共你云雨</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>


<nav class="site-nav">
  
  <ul id="menu" class="menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-fw fa-home"></i>首页</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-fw fa-tags"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-fw fa-th"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-fw fa-archive"></i>归档</a>

  </li>
  </ul>

</nav>
</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content">
            

  <div class="posts-expand">
      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block " lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://gitee.com/mamba666/mamba666.git/2020/03/09/%E5%BE%AE%E4%BF%A1%E5%B0%8F%E7%A8%8B%E5%BA%8F%E7%AC%94%E8%AE%B0/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="Edison">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="共你云雨">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          微信小程序学习笔记
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>
              

              <time title="创建时间：2020-03-09 16:46:41 / 修改时间：16:46:44" itemprop="dateCreated datePublished" datetime="2020-03-09T16:46:41+08:00">2020-03-09</time>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <p>将持续更新~</p>
<a id="more"></a>

<blockquote>
<ul>
<li>就近原则，在写wxss时页面级的样式会覆盖应用级的样式，其实和css一样。json同理</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>页面层级最好不要超过5层，因为层级太多用户体验不好</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>app.json 是当前小程序的全局配置，包括了小程序的所有页面路径、界面表现、网络超时时间、底部 tab 等</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>在每次增加或者减少页面后都需要对app.json的pages数组进行修改</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>有个很有意思的技巧，因为在开发初期，无法快速直接创建页面的各个文件，这时可以在app.json中的pages里面增加这个页面，然后文件树就会自动创建好</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>在页面的json中，不能为空。要么写一个大括号，要么就删除</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>wxml中添加图片如果没有设置wxss则会显示默认的尺寸：300*225</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>text组件内只支持text的嵌套，并且除了文本节点以外的其他节点都无法被长按选中</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>rpx和px的区别在于rpx会随着机型的变化而改变，就是自适应</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>swiper组件中，只能放swiper-item，放其他的东西会出现未定义错误。</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>要想设置swiper中banner的宽高，只能在swiper中设置，而不能在swiper-item或者image中设置，这样是无效的，因为swiper是最外面的容器，swiper-item会自动100%</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>swiper中也不用设置宽度，根据css的流体特性，是会自动铺满整个屏幕的，所以如果banner没有铺满，只需要设置相应的图片即可</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>页面配置中，只能设置app.json中window对应的配置项，以决定本页面的窗口表现，所以无需写window这个属性</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>在wxss中，如果设置了image ==&gt; width:100%;height:100%;    ，就会出现一个bug，就是image中的图片不会显示，可能的原因未知，根据猜测应该是image标签自身的默认属性。</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>水平居中推荐使用弹性盒子而不是vertical-align。代码如下display: flex;flex-direction: row;align-items: center;</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>在设置字体颜色时不要设置纯黑色，可以使用#333</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>关于页面的js，生命周期函数执行顺序onload—&gt;onshow—&gt;onready</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>onunload和onhide在多页面情况下会执行</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>onshare在点击转发之后就会立即执行，并且同时会触发onhide。因为转发的页面会覆盖在当前页面上</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>生命周期在有经验之后再来理解会好一点</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>小程序是不存在DOM节点的</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>在小程序真实开发中数据是不能绑定在wxml中的，通过数据绑定从js中的数据可以直接显示在wxml中，语法是双花括号，里面填在js中data中定义的数据名</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>DOM优先和数据优先</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>小程序是单向数据绑定，即JS到wxml，如果wxml改变了JS是不会自动更新的，但是可以通过事件的方式。这里要注意是自动~</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>this.setData(obj_name),这样在服务器获取的属性就不用再data里面定义。</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>js中，非空字符串会判定为false，有意思的在于之前的swiper组件，设置了autoplay=’true’和autoplay=’false’是一样的，为什么呢？因为这里是一个字符串形式，所以在设置swiper属性时有很多种做法，比如要设置false，可以加上两个双括号，或者是一个非空字符</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>关于双花括号的用法可以参考框架-视图层-wxml-数据绑定</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>wx:if 和 wx:for 后面数据绑定都要加引号</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>（条件渲染）wx:if在组件里可以控制该组件的显示与否，但是也要用到数据绑定，即花括号中的变量名的值随js中而变化</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>（列表渲染）wx:for指定数组，wx:for-item指定数组下面的元素<br>ps:   这里wx:for-item其实也可以不写，只写在数据绑定中加上任意前缀就可以，因为他会为你自动推断出wx:for-item就是这个任意的前缀。</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>点击按钮跳转页面并且保留当前页面使用API：   wx.navigateTo</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>关闭当前页面，跳转到应用内的某个页面使用API：   wx.redirectTo</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>没有特殊需求不要使用button，可以使用view</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>垂直水平居中（flex）<br>  display:flex;<br>  flex-direction: column;<br>  align-items: center;</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>在考虑使用rpx和px单位时，要考虑是否需要自适应，比如文章和图片之间想保持一个固定的间距，就应该使用px而不是盲目使用rpx</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>标题使用#333，正文使用#666</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>数据绑定只能在默认data里面定义，不能是自己定义的</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>如果从服务器返回一个数组变量，并且数组赋值给了一个变量x,这时不能用this.setData(x)，因为返回到默认data里面的必须是一个名字并且有属性，但是这个x是一个临时的变量，所以不能直接这么写。可以对x赋值一个y，即y:x，让y成为x的变量名，同时，在wxml的wx:for中，也要写上y而不是x。</li>
</ul>
</blockquote>
<p>ps:  其实直接在this.setData(x)中给x加上{}就可以了。  但是这是ES6语法中简写对象的形式<br>原理是，对象名和对象值相同时，可以简化只写一个。</p>
<blockquote>
<ul>
<li>wx:for-item和wx:for一起用，后者指定数组，前者指定数组中的元素，同时在wxml中数据绑定也要加上前缀wx:for-item指定的值。   这里wx:for-item默认值是item</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>要想知道当前是数组第几位，可以使用wx:for-index=”idx”，这里idx可以换成任意，然后双括号idx就可以了。这里index是默认值</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>wx.navigateTo和wx.redirectTo区别在于前者跳转页面后会后返回前页面的按钮，后者没有。</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>bind和catch的区别是bind会向上冒泡（父元素绑定事件会随之发生），而catch只捕捉当前元素。</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>alt + shift + f  快速格式化代码格式</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>require方法只能使用相对路径，用绝对路径是找不到的</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>数据都需要从服务器获取，如果没有服务器，则可以新键一个目录，在新目录里新键JS文件，将所有数据放在文件里，然后</li>
</ul>
</blockquote>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">module</span>.exports=&#123;</span><br><span class="line">    postList:local_database</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<p>local_database是数据的变量名，postList是他的对象名<br>然后在相应的JS文件中写如下代码</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">var</span> postsData=<span class="built_in">require</span>(<span class="string">"../../data/posts-data.js"</span>);</span><br><span class="line"><span class="comment">//写在onload函数中</span></span><br><span class="line"><span class="keyword">this</span>.setData(&#123;</span><br><span class="line">      posts_key:postsData.postList;</span><br><span class="line">    &#125;);</span><br></pre></td></tr></table></figure>
<blockquote>
<ul>
<li>template模板写在wxml里面 </li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>这里的is等于模板名字  ps：import组件也需要/</li>
</ul>
</blockquote>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">&lt;template is=<span class="string">"postItem"</span> /&gt;</span><br></pre></td></tr></table></figure>

<blockquote>
<ul>
<li>css模板化,引号中是模板化的文件名</li>
</ul>
</blockquote>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">@<span class="keyword">import</span> <span class="string">"post-item/post-item-template.wxss"</span>;</span><br></pre></td></tr></table></figure>

<blockquote>
<ul>
<li>只有连字符会被默认转换成驼峰书写形式，自己写的驼峰会被默认成小写</li>
</ul>
</blockquote>
<blockquote>
<ul>
<li>js文件必须要有东西，不能为空的</li>
</ul>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>
<blockquote>
<p>+</p>
</blockquote>

    </div>

    
    
    

      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/%E5%BE%AE%E4%BF%A1%E5%B0%8F%E7%A8%8B%E5%BA%8F/" rel="tag"># 微信小程序</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2020/03/09/%E6%95%B0%E6%8D%AE%E2%80%94%E5%8F%98%E9%87%8F%E2%80%94%E5%86%85%E5%AD%98%E6%A6%82%E5%BF%B5%E8%BE%A8%E6%9E%90/" rel="prev" title="数据—变量—内存概念辨析">
      <i class="fa fa-chevron-left"></i> 数据—变量—内存概念辨析
    </a></div>
      <div class="post-nav-item">
    <a href="/2020/03/09/%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F/" rel="next" title="正则表达式">
      正则表达式 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  

  </div>


          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">Edison</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">124</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">21</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">19</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

<div class="copyright">
</div>
  <div class="powered-by">山高水远  一定相见
  </div>
<div></div>
<div class="theme-info">
  <div class="powered-by"></div>
  <span class="post-count">至今已写107.1k字</span>
</div>

        








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/pisces.js"></script>


<script src="/js/next-boot.js"></script>




  















  

  

</body>
</html>
